composetable: Remove a redundant check
authorMatthias Clasen <mclasen@redhat.com>
Thu, 4 Feb 2021 05:22:52 +0000 (00:22 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 4 Feb 2021 05:22:52 +0000 (00:22 -0500)
We already know seq_index is not NULL here.

Pointed out in https://www.viva64.com/en/b/0793/

gtk/gtkcomposetable.c

index a07f5da06f0654794148ee22a0e25d62517737d2..c5261f8a631d445da34519a36dc0b7a92d6e2e61 100644 (file)
@@ -1038,7 +1038,7 @@ gtk_compose_table_compact_check (const GtkComposeTableCompact  *table,
   if (!seq_index)
     return FALSE;
 
-  if (seq_index && n_compose == 1)
+  if (n_compose == 1)
     return TRUE;
 
   seq = NULL;